package com.ruoyi.driver.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用车类型对象 carowner_usecar
 * 
 * @author Wevon
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarownerUsecar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 车辆类型ID */
    @Excel(name = "车辆类型ID")
    private Long vehicleTypeId;

    /** 车辆长度ID */
    @Excel(name = "车辆长度ID")
    private Long vehicleLenghId;

    /*车辆长度表*/
    private CarownerVehiclelengh carownerVehiclelengh;

    /*车辆类型表*/
    private CarownerVehicletype carownerVehicletype;

    /** 逻辑删 */
    private String del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleTypeId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleTypeId;
    }
    public void setVehicleLenghId(Long vehicleLenghId) 
    {
        this.vehicleLenghId = vehicleLenghId;
    }

    public Long getVehicleLenghId() 
    {
        return vehicleLenghId;
    }
    public void setDel(String del) 
    {
        this.del = del;
    }

    public String getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleId", getVehicleId())
            .append("vehicleLenghId", getVehicleLenghId())
            .append("del", getDel())
            .toString();
    }
}
